<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for collection "notecontent".
 *
 * @property \MongoDB\BSON\ObjectID|string $_id
 */
class Notecontent extends \yii\mongodb\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function collectionName()
    {
        return 'notecontent';
    }

    /**
     * {@inheritdoc}
     */
    public function attributes()
    {
        return [
            '_id',
            'link',
            'content',
            'contenttitle',
            'author',
            'floor',
            'cTime'

        ];
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            '_id' => 'ID',
            'link'=>'链接',
            'content'=>'内容',
            'contenttitle'=>'帖子标题',
            'author'=>'作者',
            'floor'=>'楼层',
            'cTime'=>'创建时间'
        ];
    }
}
